package com.milling.business.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.milling.common.annotation.Excel;
import com.milling.common.core.domain.BaseEntity;

/**
 * 交易信息对象 wms_txn_info
 *
 * @author X
 * @date 2025-01-17
 */
public class WmsTxnInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 交易编号 */
    private Long txnId;

    /** 交易类型 */
    @Excel(name = "交易类型")
    private String txnType;

    /** 交易数量 */
    @Excel(name = "交易数量")
    private Long qty;

    /** 完成数量 */
    @Excel(name = "完成数量")
    private Long completeQty;

    /** 设备编号 */
    @Excel(name = "设备编号")
    private String macCode;

    /** 交易状态 */
    @Excel(name = "交易状态")
    private String txnStatus;

    /** 请求报文 */
    @Excel(name = "请求报文")
    private String reqBody;

    /** 返回报文 */
    @Excel(name = "返回报文")
    private String resBody;

    public void setTxnId(Long txnId)
    {
        this.txnId = txnId;
    }

    public Long getTxnId()
    {
        return txnId;
    }
    public void setTxnType(String txnType)
    {
        this.txnType = txnType;
    }

    public String getTxnType()
    {
        return txnType;
    }
    public void setQty(Long qty)
    {
        this.qty = qty;
    }

    public Long getQty()
    {
        return qty;
    }
    public void setCompleteQty(Long completeQty)
    {
        this.completeQty = completeQty;
    }

    public Long getCompleteQty()
    {
        return completeQty;
    }
    public void setMacCode(String macCode)
    {
        this.macCode = macCode;
    }

    public String getMacCode()
    {
        return macCode;
    }
    public void setTxnStatus(String txnStatus)
    {
        this.txnStatus = txnStatus;
    }

    public String getTxnStatus()
    {
        return txnStatus;
    }
    public void setReqBody(String reqBody)
    {
        this.reqBody = reqBody;
    }

    public String getReqBody()
    {
        return reqBody;
    }
    public void setResBody(String resBody)
    {
        this.resBody = resBody;
    }

    public String getResBody()
    {
        return resBody;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("txnId", getTxnId())
                .append("txnType", getTxnType())
                .append("qty", getQty())
                .append("completeQty", getCompleteQty())
                .append("macCode", getMacCode())
                .append("txnStatus", getTxnStatus())
                .append("reqBody", getReqBody())
                .append("resBody", getResBody())
                .append("remark", getRemark())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
